<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      enchant-2.2.7
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;9.&nbsp;General Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="dbus-glib.html" title=
          "dbus-glib-0.110">Prev</a>
          <p>
            dbus-glib-0.110
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="exempi.html" title="Exempi-2.5.1">Next</a>
          <p>
            Exempi-2.5.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genlib.html" title=
          "Chapter&nbsp;9.&nbsp;General Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="enchant" name="enchant"></a>enchant-2.2.7
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to enchant
        </h2>
        <p>
          The <span class="application">enchant</span> package provide a
          generic interface into various existing spell checking libraries.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://github.com/AbiWord/enchant/releases/download/v2.2.7/enchant-2.2.7.tar.gz">
                https://github.com/AbiWord/enchant/releases/download/v2.2.7/enchant-2.2.7.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 8a6ea1bb143c64e0edf5e49c7e7cb984
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 932 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 6.8 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.2 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          enchant Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="glib2.html" title=
          "GLib-2.62.4">GLib-2.62.4</a>
        </p>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="aspell.html" title=
          "Aspell-0.60.8">Aspell-0.60.8</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="dbus-glib.html" title=
          "dbus-glib-0.110">dbus-glib-0.110</a>, <a class="ulink" href=
          "http://hspell.ivrix.org.il/">Hspell</a>, <a class="ulink" href=
          "http://hunspell.github.io/">Hunspell</a>, <a class="ulink" href=
          "http://hunspell.github.io/">Voikko</a>, and <a class="ulink" href=
          "https://github.com/unittest-cpp/unittest-cpp/releases">unittest-cpp</a>
          (required for tests)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/enchant">http://wiki.linuxfromscratch.org/blfs/wiki/enchant</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of enchant
        </h2>
        <p>
          Install <span class="application">enchant</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr --disable-static &amp;&amp;
make</kbd>
</pre>
        <p>
          To run tests, unittest-cpp must be installed and the
          --enable-relocatable option passed to configure above. If these
          conditions are present, the tests may be run with <span class=
          "command"><strong>make check</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class=
"command">make install                                   &amp;&amp;
rm -rf /usr/include/enchant                    &amp;&amp;
ln -sfv enchant-2       /usr/include/enchant   &amp;&amp;
ln -sfv enchant-2       /usr/bin/enchant       &amp;&amp;
ln -sfv libenchant-2.so /usr/lib/libenchant.so &amp;&amp;
ln -sfv enchant-2.pc    /usr/lib/pkgconfig/enchant.pc</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
        <p>
          <span class="command"><strong>rm -rf
          /usr/include/enchant</strong></span>; <span class=
          "command"><strong>ln -sfn ...</strong></span>: Create symlinks for
          this package version so that other other packages can find it using
          the old name.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring enchant
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="enchant-config" name="enchant-config"></a>
          </h3>
          <h4 class="title">
            <a id="enchant-config" name="enchant-config"></a>Config Files
          </h4>
          <p>
            <code class="filename">~/.enchant</code> and <code class=
            "filename">/usr/share/enchant/enchant.ordering</code>
          </p>
        </div>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm45779280427376" name=
            "idm45779280427376"></a>Configuration Information
          </h4>
          <p>
            You can test your installation and configuration by creating a
            test file and running the commands in the following (you can
            replace the en_GB dictionary by any other downloaded when
            installing <a class="xref" href="aspell.html" title=
            "Aspell-0.60.8">Aspell-0.60.8</a>):
          </p>
          <pre class="userinput">
<kbd class="command">cat &gt; /tmp/test-enchant.txt &lt;&lt; "EOF"
<code class="literal">Tel me more abot linux
Ther ar so many commads</code>
EOF

enchant -d en_GB -l /tmp/test-enchant.txt &amp;&amp;
enchant -d en_GB -a /tmp/test-enchant.txt</kbd>
</pre>
          <p>
            You will see a list of the misspelled words followed by a list of
            alternatives for them.
          </p>
          <p>
            See more details in the enchant manual page.
          </p>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">enchant and enchant-lsmod-2</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libenchant.so and various backend
              libraries</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/{include,lib,share}/enchant-2</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="enchant-prog" name="enchant-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>enchant</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a spellchecker
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="enchant-lsmod-2" name=
                    "enchant-lsmod-2"></a><span class="term"><span class=
                    "command"><strong>enchant-lsmod-2</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    lists available backends, languages, and dictionaries.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libenchant" name="libenchant"></a><span class=
                    "term"><code class="filename">libenchant.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains spell checking interface API functions.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 18:46:23 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="dbus-glib.html" title=
          "dbus-glib-0.110">Prev</a>
          <p>
            dbus-glib-0.110
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="exempi.html" title="Exempi-2.5.1">Next</a>
          <p>
            Exempi-2.5.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genlib.html" title=
          "Chapter&nbsp;9.&nbsp;General Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
